package com.itheima.homework.test2;

public class BOC extends Bank implements Loans{

    //空参满参构造
    public BOC() {
    }

    public BOC(String bankName) {
        super(bankName);
    }



    @Override
    public void sendLoans() {
        System.out.println(bankName + "银行可以发放贷款");
    }

    @Override
    public void check() {
        System.out.println("查询征信");
    }
    @Override
    public void bankCustomer(Person person) {
        System.out.println(person.getName() + "使用的是"+ bankName +"银行的贷款");
    }
}
